package com.biz.primus.ms.oms.dao.repository;

import com.biz.primus.ms.oms.dao.po.OmsChannel;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

/**
 * @author yanweijin
 * @date 2017/11/17
 */
public interface ChannelRepository extends JpaRepository<OmsChannel,Long> {

	@Query("from OmsChannel where channel = ?1")
	OmsChannel findByChannel(String channelCode);

}
